|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.lessvoid.nifty.screen.DefaultScreenController
ga.view.aerial.AerialUIController<T>
T - The generic type of the individuals.public class AerialUIController<T extends IIndividual<T>>
This is a controller that allows communication with the nifty gui.
| Field Summary | |
|---|---|
private AerialEvaluationState<T> |
evaluator
The evaluator. |
private T |
individual
The individual. |
private static java.util.logging.Logger |
LOGGER
The Constant LOGGER. |
private MenuListener |
menuListener
The menu listener. |
| Constructor Summary | |
|---|---|
AerialUIController(AerialEvaluationState<T> evaluator)
Instantiates a new aerial ui controller. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCosts()
Gets the costs. |
java.lang.String |
getGeneration()
Gets the generation. |
java.lang.String |
getId()
Gets the id. |
void |
onFitnessChange(java.lang.String s)
Callback method. |
void |
onTerminate()
Callback method. |
void |
rotateDown()
Callback method. |
void |
rotateLeft()
Callback method. |
void |
rotateRight()
Callback method. |
void |
rotateUp()
Callback method. |
void |
setIndividual(T individual)
Sets the individual. |
void |
setMenuListener(MenuListener menuListener)
Sets the menu listener. |
| Methods inherited from class de.lessvoid.nifty.screen.DefaultScreenController |
|---|
bind, gotoScreen, onEndScreen, onStartScreen |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.logging.Logger LOGGER
private final AerialEvaluationState<T extends IIndividual<T>> evaluator
private T extends IIndividual<T> individual
private MenuListener menuListener
| Constructor Detail |
|---|
public AerialUIController(AerialEvaluationState<T> evaluator)
evaluator - the evaluator| Method Detail |
|---|
public void setMenuListener(MenuListener menuListener)
IMenuListenerParent
setMenuListener in interface IMenuListenerParentmenuListener - the new menu listenerpublic void setIndividual(T individual)
individual - the new individualpublic void onFitnessChange(java.lang.String s)
s - The string.public void onTerminate()
public java.lang.String getId()
public java.lang.String getCosts()
public java.lang.String getGeneration()
public void rotateLeft()
public void rotateRight()
public void rotateUp()
public void rotateDown()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||